This resource address returns status information for the named database. The database can be identified either by id or name.
URL Parameters | |
---|---|
format | The format of the returned data. Can be either
html , json , or xml (default). This value overrides
the Accept header if both are present. |
Request Headers | |
---|---|
Accept | The expected MIME type of the response. If the
format parameter is present, it takes precedence over the Accept header. |
Upon success, MarkLogic Server returns status code 200 (OK), and the response body contains the requested data. If the URI is malformed or the database does not exist, a status code of 400 (Bad Request) is returned. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-user
rolehttp://marklogic.com/xdmp/privileges/manage
manage
role plus one of the following granular privileges:
http://marklogic.com/xdmp/privileges/admin/database/database-ID
http://marklogic.com/xdmp/privileges/admin/database/activity/database-ID
where activity is one of the following:
The structure of the output returned from this REST API is as follows:
id
name
meta
This is a complex structure with the following children:
uri
current-time
elapsed-time
start-min
view-error
This is a complex structure with the following children:
error-type
error-name
error-code
error-message
relations
This is a complex structure with the following children:
relation-group
This is a complex structure with the following children:
uriref
typeref
roleref
relation-count
relation
This is a complex structure with the following children:
qualifiers
This is a complex structure with the following children:
qualifier
This is a complex structure with the following children:
uriref
typeref
idref
nameref
uriref
typeref
roleref
idref
nameref
status-properties
This is a complex structure with the following children:
enabled
state
indexing-state
rebalancing-state
forests-count
device-space
data-size
large-data-size
fast-data-size
in-memory-size
average-forest-size
largest-forest-size
least-remaining-space-forest
merge-count
total-merge-size
reindex-count
backup-count
last-backup
last-incr-backup
restore-count
min-capacity
rebalancing
load-properties
This is a complex structure with the following children:
total-load
load-detail
This is a complex structure with the following children:
query-read-load
journal-write-load
save-write-load
merge-read-load
merge-write-load
backup-read-load
backup-write-load
restore-read-load
restore-write-load
large-read-load
large-write-load
database-replication-send-load
database-replication-receive-load
read-lock-wait-load
read-lock-hold-load
write-lock-wait-load
write-lock-hold-load
deadlock-wait-load
rate-properties
This is a complex structure with the following children:
total-rate
rate-detail
This is a complex structure with the following children:
query-read-rate
journal-write-rate
save-write-rate
merge-read-rate
merge-write-rate
backup-read-rate
backup-write-rate
restore-read-rate
restore-write-rate
large-read-rate
large-write-rate
database-replication-send-rate
database-replication-receive-rate
read-lock-rate
write-lock-rate
deadlock-rate
cache-properties
This is a complex structure with the following children:
list-cache-hit-rate
list-cache-miss-rate
triple-cache-hit-rate
triple-cache-miss-rate
triple-value-cache-hit-rate
triple-value-cache-miss-rate
compressed-tree-cache-hit-rate
compressed-tree-cache-miss-rate
list-cache-ratio
triple-cache-ratio
triple-value-cache-ratio
compressed-tree-cache-ratio
large-binary-cache-hit-rate
large-binary-cache-miss-rate
local-disk-failover
This is a complex structure with the following children:
local-disk-failover-active
replicas
replica-on-disk-size
replica-in-memory-size
failed-masters
failed-replicas
active-replicas
async-replicating
wait-replication
database-replication-status
This is a complex structure with the following children:
database-replication-configured
database-replication-active
local-forests
is-foreign-replica
foreign-replica-databases
foreign-replica-forests
foreign-forests-lag-exceeded
shared-disk-failover
This is a complex structure with the following children:
shared-disk-failover-active
flexible-replication-enabled
cpf-enabled
related-views
This is a complex structure with the following children:
related-view
This is a complex structure with the following children:
view-type
view-name
view-uri
http://localhost:8002/manage/v2/databases/Documents?view=status ==> Returns status information on the Documents database.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.